package com.scpii.api.common.auth.client;

import com.scpii.api.common.auth.AuthorizationRequest;
import com.scpii.api.common.auth.ClientAuthentication;
import com.scpii.api.domain.auth.Devices;
import com.scpii.api.domain.auth.UsersInfoDetails;

public interface ClientDetailsService {

	UsersInfoDetails loadAnonymousUsersInfoDetailsByDeviceId(String appId,
			String deviceId);

	void storeDevice(AuthorizationRequest request,
			ClientAuthentication authentication);

	Devices loadDevicesByPrimaryKey(Long id);

	void checkServiceIsExpired(ClientAuthentication authentication);

	void updateLastActivityDt(ClientAuthentication auth);
}
